

import xadmin



from xadmin import views



class BaseSetting:
    enable_themes =True
    use_bootswatch=True



xadmin.site.register(views.BaseAdminView,BaseSetting)


class GlobalSettings:

    site_title = "路飞学院"
    site_footer="路飞"
    menu_style ="accordion"



xadmin.site.register(views.CommAdminView,GlobalSettings)



#模型
from .models import Banner
class BannerAdmin:
    list_display = ["title"]


xadmin.site.register(Banner,BannerAdmin)

